#ifndef _YATAK_MAP_H
#define _YATAK_MAP_H

#ifdef __cplusplus
extern "C" {
#endif

#include <list.h>

typedef struct multi_map
{
	char key [256];
	list_t * values;
	struct multi_map * next; 
} multi_map_t;

int add2multi_map (multi_map_t ** map, char * key, void * item, size_t size);
list_t * get_multi_map_items (multi_map_t * map, char * key);
int remove_multi_map_items (multi_map_t ** map, char * key);
int remove_multi_map (multi_map_t ** map);

#ifdef __cplusplus
}
#endif

#endif